<?php

use app\api\service\OssService;

function previewUrl($url, $file_name = null)
{
    if (!$url) return 'javascript:void(0)';
    return OssService::previewUrl($url, $file_name);
}